<!DOCTYPE html>
<!-- saved from url=(0064)http://wx.zhongfubang.com/user_info_completion.html?project_id=3 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<title>加入承诺</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<link href="./css/mui.min.css" rel="stylesheet">
		<link href="./css/form.css" rel="stylesheet">
	<style type="text/css" abt="234"></style><style type="text/css"></style><script>//console.log('a')
</script><script>//remove 17173 video ad

</script><style type="text/css">object,embed{                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;                -o-animation-duration:.001s;-o-animation-name:playerInserted;                animation-duration:.001s;animation-name:playerInserted;}                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style></head>
	<body>
		<header class="mui-bar mui-bar-nav bgcolor">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">加入承诺</h1>
		</header>
		<div class="mui-content">
			<div class="mui-card"> 
				<div class="mui-card-content">
					<!--小题目-->
					<div class="mui-row title-row">
						<span class="little-title">本人承诺符合互助计划相关要求</span>
					</div>
					<div class="mui-row agree-row center">
						<div class="agree textcolor">同意</div>
					</div>
					<!--//小题目-->
					<div class="mui-row center">
						<span class="title2">填写参加人信息</span>
					</div>
		    		<form class="mui-input-group" id="saveForm">
		    			<!--<div class="input-group">-->
		    				<div class="mui-input-row">
			    		       <input type="text" class="" id="realName" name="realName" placeholder="真实姓名" value="">
			    		    </div>
		    			<!--</div>-->
		    		    <!--<div class="input-group">-->
		    		    	<div class="mui-input-row">
			    		        <input type="text" class="" id="idCode" name="idCode" placeholder="身份证号码" value="">
			    		    </div>
		    		    <!--</div>-->
		    		    <div class="mui-row infotext-row">
		    		    	<span class="infotext">*以上信息是获取互助的唯一凭证，务必认真填写，以便申请互助金能够确认到您的身份。
                    </span>
		    		    </div>
		    		    <div class="mui-button-row btn-row1">
		    		    	<button type="button" class="mui-btn mui-btn-primary mui-btn-outlined" id="btn_join_myself">确定</button>
		    		    </div>   
		    		</form>
		    	</div>
		    	
			</div>
		</div>
		<script src="./js/mui.js"></script>
		<script src="./js/jquery-1.10.2.min.js"></script>
		<script src="./js/common.js"></script>
		<script src="./js/vue.min.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			
			var type = -1;
			mui.plusReady(function () {
			    var self = plus.webview.currentWebview();
			    type = self.type;
			})
			
			/*按钮倒计时60秒*/
			var wait=120;
			function time(o) {
			  if (wait == 0) {
			   o.removeAttribute("disabled");   
			   o.innerHTML="获取验证码";
			   wait = 120;
			  } else { 
				   o.setAttribute("disabled", true);
				   o.innerHTML="重新发送(" + wait + "s)";
				   wait--;
				   setTimeout(function() {
				    time(o)
			  		},1000)
			 	}
			}
			/**/
			
			/*var code = "";
			btn_send_yanzheng.addEventListener('tap',function(){
				var phone = text_phone.value;

				if(phone == "") {
					mui.toast("请输入手机号");
					return false;
				}
				
				var url = "https://route.showapi.com/28-1";
				var randnum = Math.round(Math.random() * 1000000);
				time(btn_send_yanzheng);
				
				mui.post(url, {
						showapi_timestamp: formatterDateTime(),
						"showapi_timestamp": formatterDateTime(),
						"showapi_appid": showapi_appid, //这里需要改成自己的appid
						"showapi_sign": showapi_sign, //这里需要改成自己的应用的密钥secret
						"mobile": phone,
						"content": "{\"code\":\"" + randnum + "\"}",
						"tNum": reg_tNum,
						"big_msg": ""
					},
					function(data) {

						if(data.showapi_res_body.ret_code == 0) {
							mui.toast("发送成功");
							code = randnum;
						}
						
					}, 'json'
				);
				
			});*/
			
			btn_join_myself.addEventListener('tap',function(){
				
				var realName 	= $("#realName").val();
				var idCode 	 	= $("#idCode").val();
				
				
				if(realName=="")
				{
					mui.toast("请输入真实姓名");
					return false;
				}
				
				if(idCode=="")
				{
					mui.toast("请输入身份证");
					return false;
				}
				
				
				var url = root + 'myCenter/updateAppUserInfo';
				mui.post(url,
					{
						id:$.getUrlParam('appUserId'),
						realName:realName,
						idCode:idCode
					},
					function(result)
					{
						if(result.status == "failed")
						{
							mui.toast(result.msg);
							return false;
						}
						var appUser = JSON.parse(localStorage.appUser);
						appUser.idCode=idCode;
						appUser.realName=realName;
						localStorage.appUser=JSON.stringify(appUser);
						mui.openWindow('yiyuan_buy.html?productId='+$.getUrlParam('productId')+"&applyPeopleId="+$.getUrlParam('appUserId')+"&selectType=1",'',{})
						/*if(data.code==1)
						{
							var project_id = getpar("project_id");
							if(project_id!=3)
							{
								mui.openWindow('project_buy.html?project_id='+project_id,'',{})
							}
							else
							{
								mui.openWindow('yiyuan_buy.html','',{})
							}
							
						}
						else
						{
							mui.toast("修改失败");
						}*/
					},'json'
				);
			});
			
		</script>
	

</body></html>